<%@page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<%@ include file="../common/common.jsp"%>
		<script type="text/javascript">
			var basepath = <%=request.getContextPath() + "/"%>
			$(function(){
				var height = window.document.body.offsetHeight-50;
				$("#salary_level_info_table").datagrid({
					height : height,
					fitColumns:true,
					//fit:true,
					pagination:true,//分页数据
					rownumbers: true,
					loadMsg:'正在加载数据,请稍后',
					pageSize:10,
					url:basepath+'contractInfoAction!loadMainContractInfo.do',
					columns:[[  
					          {field:'clientcode',title:'岗位名称',width:100},  
					          {field:'clientname',title:'岗位级别',width:100},  
					          {field:'clientcontract',title:'标准工资',width:100},  
					          {field:'a',title:'岗位津贴',width:100},  
					          {field:'v',title:'绩效工资',width:100}
				    ]],
				    toolbar : [{
				    	text : '新增',
				    	iconCls : 'icon-add',
				    	handler : function(){
				    		$('#salary_level_info_win').window('open');
							$('#salary_level_info_win').window('setTitle', '新增岗位级别薪酬标准');
				    	}
				    },{
				    	text : '编辑',
				    	iconCls : 'icon-edit',
				    	handler : function(){
				    		$('#salary_level_info_win').window('open');
							$('#salary_level_info_win').window('setTitle', '新增岗位级别薪酬标准');
				    	}
				    },{
				    	text : '删除',
				    	iconCls : 'icon-no',
				    	handler : function(){
				    		 $.messager.confirm('信息提示','你是否要删除当前选中数据?',function(r){  
				   				  if(r){
				   					  $.messager.alert('信息提示','删除成功');
				   				  }
				   			 });
				    	}
				    },{
				    	text : '查看',
				    	iconCls : 'icon-ok',
				    	handler : function(){
				    		
				    	}
				    }]
				});
			});
		</script>
	</head>
	<body class="easyui-layout">
		<div region = "center" title = "岗位级别薪酬标准目录要素" closable="false" >
			<div  border="false"  id="toolbar">
		        <table id="salary_level_info_table"></table>  
			</div>
		</div>
		<div id = "salary_level_info_win" href = salary_level_info_add.jsp class = "easyui-window" buttonAlign = "center" data-options="title:'新增表单',iconCls:'icon-save'" closed="true"style="width:800px;height:300px;padding:5px;" >
		</div>
	</body>
</html>